const api = "/addons/yzy/api."

const jq_api = "/addons/ty/xcx."

//发送验证码
export const sendCode = (params, config = {}) => uni.$u.http.post(`${api}Login/send`, params, config)

//登录
export const login = (params, config = {}) => uni.$u.http.post(`${api}Login/login`, params, config)

//用户协议
export const getAbout = (data) => uni.$u.http.get(`${api}Login/agreement`, data)

//获取版本信息
export const getVersion = (data) => uni.$u.http.get(`${api}Index/getVersion`, data)

//获取域名地址信息
export const getBaseUrl = (data) => uni.$u.http.get(`${api}Index/codeList`, data)

//获取公共信息
export const getSetInfo = (data) => uni.$u.http.get(`${api}my/about`, data)

//首页数据
export const indexData = (data) => uni.$u.http.get(`${api}index/index`, data)

//景区分类
export const circuitType = (params, config = {}) => uni.$u.http.post(`${api}Scenic/clist`, params, config)

//景区列表
export const circuitList = (params, config = {}) => uni.$u.http.post(`${api}Scenic/sceniclist`, params, config)

//景区详情
export const circuitDetail = (params, config = {}) => uni.$u.http.post(`${api}Scenic/details`, params, config)

//资讯列表
export const infoList = (params, config = {}) => uni.$u.http.post(`${api}Article/alist`, params, config)

//资讯详情
export const infoDetail = (params, config = {}) => uni.$u.http.post(`${api}Article/details`, params, config)

//公告详情
export const noticeDetail = (params, config = {}) => uni.$u.http.post(`${api}Notice/details`, params, config)

//个人信息
export const getInfo = (data) => uni.$u.http.get(`${api}my/index`, data)

//是否有卡
export const checkVip = (data) => uni.$u.http.get(`${api}my/check`, data)

//出行人列表
export const visitorList = (data) => uni.$u.http.get(`${api}my/addresslist`, data)

//出行人添加
export const visitorAdd = (params, config = {}) => uni.$u.http.post(`${api}my/address`, params, config)

//出行人修改
export const visitorEdit = (params, config = {}) => uni.$u.http.post(`${api}my/upaddresss`, params, config)

//出行人删除
export const visitorDel = (params, config = {}) => uni.$u.http.post(`${api}my/deladdress`, params, config)

//出行人详情
export const visitorDetail = (params, config = {}) => uni.$u.http.post(`${api}my/details`, params, config)


//购买路线
export const makeOrderPay = (params, config = {}) => uni.$u.http.post(`${api}Order/payOrder`, params, config)
//预约路线
export const makeOrder = (params, config = {}) => uni.$u.http.post(`${api}Order/index`, params, config)

//订单列表
export const orderList = (data) => uni.$u.http.get(`${api}Order/getList`, data)

//我的卡包
export const cardInfo = (data) => uni.$u.http.get(`${api}Conevrt/getList`, data)

//激活会员卡
export const cardActive = (params, config = {}) => uni.$u.http.post(`${api}Conevrt/index`, params, config)

//购买会员卡
export const cardBuy = (params, config = {}) => uni.$u.http.post(`${api}card/pay`, params, config)

//购买页面
export const cardIndex = (params, config = {}) => uni.$u.http.post(`${api}card/index`, params, config)

//用户提现记录
export const userWalletRecord = (data) => uni.$u.http.get(`${api}my/withdrawList`, data)

//用户钱包提现
export const userWalletCash = (params, config = {}) => uni.$u.http.post(`${api}my/addWithdraw`, params, config)

//代理商登录
export const agentLogin = (params, config = {}) => uni.$u.http.post(`${api}Agent/login`, params, config)

//代理商主页
export const agentIndex = (data) => uni.$u.http.get(`${api}Agent/index`, data)

//代理商分销记录
export const agentRecord = (data) => uni.$u.http.get(`${api}Agent/distribution`, data)

//代理商提现记录
export const agentWalletRecord = (data) => uni.$u.http.get(`${api}Agent/withdrawList`, data)

//代理商提现
export const agentWalletCash = (params, config = {}) => uni.$u.http.post(`${api}Agent/addWithdraw`, params, config)

//分销中心
export const distIndex = (data) => uni.$u.http.get(`${api}my/shareindex`, data)

//分销记录
export const distRecord = (data) => uni.$u.http.get(`${api}my/sharelist`, data)

//海报列表
export const posterList = (data) => uni.$u.http.get(`${api}my/posterList`, data)

//生成海报
export const posterCreate = (data) => uni.$u.http.get(`${api}my/getQRCode`, data)

// 服务商价格展示
export const serviceMerchat = (data) => uni.$u.http.get(`${api}user/service`, data)

// 服务商开通
export const openService = (params, config = {}) => uni.$u.http.post(`${api}Order/openService`, params, config)

// 获取流水
export const userFlow = (data) => uni.$u.http.get(`${api}my/flow`, data)

export const getGrade = (data) => uni.$u.http.get(`${jq_api}Scenic/clist`, data);

export const getJQList = (data) => uni.$u.http.get(`${jq_api}Scenic/sceniclist`, data);

export const getCitys = (data) => uni.$u.http.get(`${jq_api}Index/getCacheAll`, data)

export const myCheck = (data) => uni.$u.http.get(`${jq_api}My/check`, data);

export const userInfo = (data) => uni.$u.http.get(`${jq_api}My/index`, data);

export const JqDetail = (data) => uni.$u.http.get(`${jq_api}Scenic/details`, data);

export const JqOrder = (params, config = {}) => uni.$u.http.post(`${jq_api}Order/index`, params, config);

//景区订单详情
export const JqOrderDetail = (data) => uni.$u.http.get(`${jq_api}Order/getDetail`, data);

